<%--
  Created by IntelliJ IDEA.
  User: Mechrevo
  Date: 2020/9/21
  Time: 14:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page isELIgnored="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
    <title>易买网 - 首页</title>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/scripts/function.js"></script>
</head>
<body>
<div id="header" class="wrap">
    <div id="logo"><img src="${pageContext.request.contextPath}/images/logo.gif" /></div>
    <div class="help">

        <a href="${pageContext.request.contextPath}/product/addCar" class="shopping">购物车</a><a href="${pageContext.request.contextPath}/login/to_login">登录</a><a href="${pageContext.request.contextPath}/register/re">注册</a><a href="${pageContext.request.contextPath}/comment/front/list">留言</a></div>
    <div class="navbar">
        <ul class="clearfix">
            <li class="current"><a href="${pageContext.request.contextPath}/index/front">首页</a></li>
            <li><a href="#">图书</a></li>
            <li><a href="#">百货</a></li>
            <li><a href="#">品牌</a></li>
            <li><a href="#">促销</a></li>
        </ul>
    </div>
</div>
<div id="childNav">
    <div class="wrap">
        <ul class="clearfix">
            <li class="first"><a href="#">音乐</a></li>
            <li><a href="#">影视</a></li>
            <li><a href="#">少儿</a></li>
            <li><a href="#">动漫</a></li>
            <li><a href="#">小说</a></li>
            <li><a href="#">外语</a></li>
            <li><a href="#">数码相机</a></li>
            <li><a href="#">笔记本</a></li>
            <li class="last"><a href="#">Investor Relations</a></li>
        </ul>
    </div>
</div>
<div id="register" class="wrap">
    <div class="shadow">
        <em class="corner lb"></em>
        <em class="corner rt"></em>
        <div class="box">
            <h1>欢迎注册易买网</h1>
            <ul class="steps clearfix">
                <li class="current"><em></em>填写注册信息</li>
                <li class="last"><em></em>注册成功</li>
            </ul>
            <form id="regForm" method="post" action="${pageContext.request.contextPath}/register/to save" onsubmit="return checkForm(this);">
                <table>
                    <tr>
                        <td class="field">用户名(*)：</td>
                        <td><input class="text" type="text" name="euUserId" onfocus="FocusItem(this)" onblur="doAjax(this,'servlet/CheckUserNameAction?userName='+this.value);" /><span></span></td>

                    </tr>
                    <tr>
                        <td class="field">真实姓名(*)：</td>
                        <td><input class="text" type="text" name="euUserName" onfocus="FocusItem(this)" onblur="CheckItem(this);" /><span></span></td>

                    </tr>
                    <tr>
                        <td class="field">登录密码(*)：</td>
                        <td><input class="text" type="password" id="password" name="euPassword" onfocus="FocusItem(this)" onblur="CheckItem(this);" /><span></span></td>
                        <c:if test="euPassword==null">
                            <td>密码不能为空</td>
                        </c:if>
                    </tr>
                    <tr>
                        <td class="field">确认密码(*)：</td>
                        <td><input class="text" type="password" id="password01" name="rePassword" onfocus="FocusItem(this)" onblur="CheckItem(this);" /><span></span></td>
                        <c:if test="password!=eupassword01">
                            <td>两次密码不一致</td>
                        </c:if>
                    </tr>
                    <tr>
                        <td class="field">性别(*)：</td>
                        <td><input type="radio" name="euSex" checked="checked" value="T"/>男
                            <input type="radio" name="euSex" value="F"/>女<span></span></td>
                    </tr>
                    <tr>
                        <td class="field">出生日期：</td>
                        <td>
                               <input type="date" name="euBirthday" class="text" value=""/>
                        </td>
                    </tr>
                    <tr>
                        <td class="field">身份证：</td>
                        <td><input class="text" type="text" name="euIdentityCode" onfocus="FocusItem(this)" onblur="CheckItem(this);"/><span></span></td>
                        <c:if test="euIdentityCode.length()!=18">
                            身份证位数不对
                        </c:if>
                    </tr>
                    <tr>
                        <td class="field">电子邮件：</td>
                        <td><input class="text" type="text" name="euEmail" onfocus="FocusItem(this)" onblur="CheckItem(this);"/><span></span></td>
                        <c:if test="euEmail==null">
                            电子邮件不能为空
                        </c:if>
                    </tr>
                    <tr>
                        <td class="field">手机：</td>
                        <td><input class="text" type="text" name="euMobile" onfocus="FocusItem(this)" onblur="CheckItem(this);" /><span></span></td>
                        <c:if test="euMobile.length()!=11">
                            <td>手机号码位数不对</td>
                        </c:if>
                    </tr>
                    <tr>
                        <td class="field">地址(*)：</td>
                        <td><input class="text" type="text" name="euAddress" onfocus="FocusItem(this)" onblur="CheckItem(this);" /><span></span></td>
                        <c:if test="euAddress==null">
                            <td>地址不能为空</td>
                        </c:if>
                    </tr>
                    <tr>
                        <td class="field"></td>
                        <td><input type="hidden" name="euStatus" checked="checked" value="1"/>
                    </tr>
                    <tr>
                        <td></td>
                        <td><label class="ui-green"><input type="submit" name="submit" value="提交注册" /></label></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <div class="clear"></div>
</div>
<div id="footer">
    Copyright &copy; 2016 湖南软测信息技术有限公司 All Rights Reserved. 湘ICP证1001号
</div>
</body>
</html>
